package com.example.certificate.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.certificate.dto.common.UserBasePageDto;
import com.example.certificate.entity.OrgUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.certificate.vo.UserInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author hao
 * @since 2022-02-16 11:29:59
 */
@Mapper
public interface OrgUserMapper extends BaseMapper<OrgUser> {
    /**
     * @Author Hao
     * @Description  分页多条件查询用户信息
     * @Date 2022/1/20
     * @Param [page, dto]
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.han.internation.domain.entity.OrgUser>
     **/
    Page<OrgUser> selBasePage(Page<OrgUser> page, UserBasePageDto dto);

    /**
     * @Author Hao
     * @Description  后台管理员用户
     * @Date 2022/2/23
     * @Param [page, dto]
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.example.certificate.entity.OrgUser>
     **/
    Page<OrgUser> selManagement(Page<OrgUser> page, UserBasePageDto dto);

    /**
     * @Author Hao
     * @Description  查询用户信息
     * @Date 2022/3/9
     * @Param [id]
     * @return com.example.certificate.entity.OrgUser
     **/
    UserInfoVo selById(@Param("id")String id);
    
}
